package com.ddwl.data.model;

import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.time.Instant;

/**
 * @Author hemiaojun
 * @Date 2021/7/5 11:32
 */
@Getter
@Setter
@Document(collection = "image_lib")
public class ImageLib {

    @Id
    private String id;
    /**
     *用户id
     */
    private String userId;
    /**
     * 店铺id
     */
    private String shopId;
    /**
     * 业务id
     */
    private String bizId;
    /**
     * 图片/视频地址
     */
    private String imgUrl;
    /**
     * 图片/视频 名称
     */
    private String imgName;
    /**
     * 类型，0图片 1视频
     */
    private Integer type;
    /**
     * 创建时间
     */
    private Instant gmtCreated;

}
